package com.zt.serviceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zt.dao.ContractDao;
import com.zt.factory.DaoFactory;
import com.zt.page.Page;
import com.zt.pojo.Contract;
import com.zt.service.ContractService;

@Service("contractService")
public class ContractServiceImpl implements ContractService{
	@Autowired
	private ContractDao contractDao;
	@Override
	public int getTotalNum()   {
		return contractDao.getTotalNum();
	}
	@Override
	public Page<Contract> find(Page page)   {
		return contractDao.find(page);
	}

	@Override
	public Contract restYearsByEmpno(Contract con)   {
		return contractDao.restYearsByEmpno(con);
	}

	@Override
	public String addContract(Contract con)   {
		return contractDao.addContract(con);
	}

	@Override
	public String updateContract(Contract con)   {
		return contractDao.updateContract(con);
	}

	@Override
	public String changSignState(Contract con)   {
		 return contractDao.changSignState(con);
	}

	@Override
	public String deleteContract(Contract con)   {
		return contractDao.deleteContract(con);
	}
}
